package com.dhcc.cdc.busi.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.dhcc.cdc.sys.entity.CdcDataEntity;
import com.dhcc.core.framework.base.entity.DataEntity;

import java.util.Date;


/**
 * 医嘱执行记录
 * 
 * @ClassName: CdcOrdexecEntity
 * @Description: TODO
 * @author jumper
 * @date 2021-03-15 10:20:07
 */
@TableName("t_cdc_bs_ordexec") 
public class CdcOrdexecEntity extends DataEntity<CdcOrdexecEntity> {
	private static final long serialVersionUID = 1L;
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	
	//索引码
	private String xcode;	
	//就诊记录
	private Long episodeId;	
	//医嘱项
	private Long orderMastId;
    @TableField(exist = false)
    private CdcOrdmastEntity orderMast;	
	//状态
	private Long busOrderStatusId;	
    @TableField(exist = false)
	private CdcDictionaryEntity busOrderStatus;
    //开医嘱日期
    @JSONField(format="yyyy-MM-dd")
	private Date orderDate;	
	//开医嘱科室
	private Long orderLocId;	
    @TableField(exist = false)
    private CdcLocationEntity orderLoc;
	//接收科室
	private Long recLocId;	
    @TableField(exist = false)
    private CdcLocationEntity recLoc;
	//开始日期
    @JSONField(format="yyyy-MM-dd")
	private Date startDate;	
	//停止日期
    @JSONField(format="yyyy-MM-dd")
	private Date endDate;

	@JSONField(format="yyyy-MM-dd HH:mm:ss")
	private Date firstExecDate;
	//停止日期
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
	private Date lastExecDate;
	//给药途径
	private Long busOrderInstrucId;	
    @TableField(exist = false)
	private CdcDictionaryEntity busOrderInstruc;
	//单次剂量
	private Float doseQty;	
	//剂量单位
	private Long busOrderUnitId;	
    @TableField(exist = false)
	private CdcDictionaryEntity busOrderUnit;
	//频次
	private Long busOrderFreqId;	
    @TableField(exist = false)
	private CdcDictionaryEntity busOrderFreq;
    //医嘱类型(长期、临时等)
  	private Long busOrderPriorityId;	
    @TableField(exist = false)
  	private CdcDictionaryEntity busOrderPriority;
	//业务数据类型
	private Long dataId;	
    @TableField(exist = false)
    private CdcDataEntity data;
	//是否有效
	private Integer isActive;	

	/**
	 * 设置：索引码
	 */
	public void setXcode(String xcode) {
		this.xcode = xcode;
	}
	/**
	 * 获取：索引码
	 */
	public String getXcode() {
		return xcode;
	}
	/**
	 * 设置：就诊记录
	 */
	public void setEpisodeId(Long episodeId) {
		this.episodeId = episodeId;
	}
	/**
	 * 获取：就诊记录
	 */
	public Long getEpisodeId() {
		return episodeId;
	}
	/**
	 * 设置：医嘱项
	 */
	public void setOrderMastId(Long orderMastId) {
		this.orderMastId = orderMastId;
	}
	/**
	 * 获取：医嘱项
	 */
	public Long getOrderMastId() {
		return orderMastId;
	}
	/**
	 * 设置：状态
	 */
	public void setBusOrderStatusId(Long busOrderStatusId) {
		this.busOrderStatusId = busOrderStatusId;
	}
	/**
	 * 获取：状态
	 */
	public Long getBusOrderStatusId() {
		return busOrderStatusId;
	}
	/**
	 * 设置：开医嘱日期
	 */
	public void setOrderDate(Date orderDate) {
		this.orderDate = orderDate;
	}
	/**
	 * 获取：开医嘱日期
	 */
	public Date getOrderDate() {
		return orderDate;
	}
	/**
	 * 设置：开医嘱科室
	 */
	public void setOrderLocId(Long orderLocId) {
		this.orderLocId = orderLocId;
	}
	/**
	 * 获取：开医嘱科室
	 */
	public Long getOrderLocId() {
		return orderLocId;
	}
	/**
	 * 设置：接收科室
	 */
	public void setRecLocId(Long recLocId) {
		this.recLocId = recLocId;
	}
	/**
	 * 获取：接收科室
	 */
	public Long getRecLocId() {
		return recLocId;
	}
	/**
	 * 设置：开始日期
	 */
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	/**
	 * 获取：开始日期
	 */
	public Date getStartDate() {
		return startDate;
	}
	/**
	 * 设置：停止日期
	 */
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	/**
	 * 获取：停止日期
	 */
	public Date getEndDate() {
		return endDate;
	}
	/**
	 * 设置：给药途径
	 */
	public void setBusOrderInstrucId(Long busOrderInstrucId) {
		this.busOrderInstrucId = busOrderInstrucId;
	}
	/**
	 * 获取：给药途径
	 */
	public Long getBusOrderInstrucId() {
		return busOrderInstrucId;
	}
	/**
	 * 设置：单次剂量
	 */
	public void setDoseQty(Float doseQty) {
		this.doseQty = doseQty;
	}
	/**
	 * 获取：单次剂量
	 */
	public Float getDoseQty() {
		return doseQty;
	}
	/**
	 * 设置：剂量单位
	 */
	public void setBusOrderUnitId(Long busOrderUnitId) {
		this.busOrderUnitId = busOrderUnitId;
	}
	/**
	 * 获取：剂量单位
	 */
	public Long getBusOrderUnitId() {
		return busOrderUnitId;
	}
	/**
	 * 设置：频次
	 */
	public void setBusOrderFreqId(Long busOrderFreqId) {
		this.busOrderFreqId = busOrderFreqId;
	}
	/**
	 * 获取：频次
	 */
	public Long getBusOrderFreqId() {
		return busOrderFreqId;
	}
	/**
	 * 设置：业务数据类型
	 */
	public void setDataId(Long dataId) {
		this.dataId = dataId;
	}
	/**
	 * 获取：业务数据类型
	 */
	public Long getDataId() {
		return dataId;
	}
	/**
	 * 设置：是否有效
	 */
	public void setIsActive(Integer isActive) {
		this.isActive = isActive;
	}
	/**
	 * 获取：是否有效
	 */
	public Integer getIsActive() {
		return isActive;
	}
    public CdcOrdmastEntity getOrderMast() {
        return orderMast;
    }
    public void setOrderMast(CdcOrdmastEntity orderMast) {
        this.orderMast = orderMast;
    }
    public CdcDictionaryEntity getBusOrderStatus() {
        return busOrderStatus;
    }
    public void setBusOrderStatus(CdcDictionaryEntity busOrderStatus) {
        this.busOrderStatus = busOrderStatus;
    }
    public CdcLocationEntity getOrderLoc() {
        return orderLoc;
    }
    public void setOrderLoc(CdcLocationEntity orderLoc) {
        this.orderLoc = orderLoc;
    }
    public CdcLocationEntity getRecLoc() {
        return recLoc;
    }
    public void setRecLoc(CdcLocationEntity recLoc) {
        this.recLoc = recLoc;
    }
    public CdcDictionaryEntity getBusOrderInstruc() {
        return busOrderInstruc;
    }
    public void setBusOrderInstruc(CdcDictionaryEntity busOrderInstruc) {
        this.busOrderInstruc = busOrderInstruc;
    }
    public CdcDictionaryEntity getBusOrderUnit() {
        return busOrderUnit;
    }
    public void setBusOrderUnit(CdcDictionaryEntity busOrderUnit) {
        this.busOrderUnit = busOrderUnit;
    }
    public CdcDictionaryEntity getBusOrderFreq() {
        return busOrderFreq;
    }
    public void setBusOrderFreq(CdcDictionaryEntity busOrderFreq) {
        this.busOrderFreq = busOrderFreq;
    }
    public CdcDataEntity getData() {
        return data;
    }
    public void setData(CdcDataEntity data) {
        this.data = data;
    }
	public Long getBusOrderPriorityId() {
		return busOrderPriorityId;
	}
	public void setBusOrderPriorityId(Long busOrderPriorityId) {
		this.busOrderPriorityId = busOrderPriorityId;
	}
	public CdcDictionaryEntity getBusOrderPriority() {
		return busOrderPriority;
	}
	public void setBusOrderPriority(CdcDictionaryEntity busOrderPriority) {
		this.busOrderPriority = busOrderPriority;
	}

	public Date getFirstExecDate() {
		return firstExecDate;
	}

	public void setFirstExecDate(Date firstExecDate) {
		this.firstExecDate = firstExecDate;
	}

	public Date getLastExecDate() {
		return lastExecDate;
	}

	public void setLastExecDate(Date lastExecDate) {
		this.lastExecDate = lastExecDate;
	}
}
